#define _CRT_SECURE_NO_WARNINGS 1

#include "binary_sort_tree.h"

BSTree SearchBST(BSTree T, KeyType key) {
	if ((!T) || key == T->data.key) return T;
	else if (key < T->data.key) {
		return SearchBST(T->lchild, key);
	}
	else return SearchBST(T->rchild, key);

	
}